package com.meituan.sdk.model.ddzh.yuding.ktvMtroomStockOperate;

import com.meituan.sdk.annotations.ApiMeta;
import java.lang.Void;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 三方房型实时库存同步
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/yuding/ktv/mtroom/stock/operate",
    businessId = 58,
    apiVersion = "10009",
    apiName = "ktv_mtroom_stock_operate",
    needAuth = true
)
public class KtvMtroomStockOperateRequest implements MeituanRequest<Void> {
    /**
    * <p data-diff-id="ct-diff-id-e7861acb-1558-40da-84ad-85d4f7dc3fc2">美团房型id</p>
    */
    @NotNull(message = "mtRoomId不能为空")
    @SerializedName("mtRoomId")
    private Long mtRoomId;
    /**
    * <p data-diff-id="ct-diff-id-ce451536-8ed5-4c19-b309-7a0889167055">日期 //2024-07-05</p>
    */
    @NotBlank(message = "stockDate不能为空")
    @SerializedName("stockDate")
    private String stockDate;
    /**
    * <p data-diff-id="ct-diff-id-f985d665-7cd9-4a27-8866-04556ececb46">每个房间每个时间段的库存占用情况，格式：map&lt;Long,list&lt;Integer&gt;&gt; json序列化后的string</p>
    */
    @NotBlank(message = "periodStock不能为空")
    @SerializedName("periodStock")
    private String periodStock;

    public Long getMtRoomId() {
        return mtRoomId;
    }
    public void setMtRoomId(Long mtRoomId) {
        this.mtRoomId = mtRoomId;
    }
    public String getStockDate() {
        return stockDate;
    }
    public void setStockDate(String stockDate) {
        this.stockDate = stockDate;
    }
    public String getPeriodStock() {
        return periodStock;
    }
    public void setPeriodStock(String periodStock) {
        this.periodStock = periodStock;
    }


    @Override
    public MeituanResponse<Void> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<Void>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "KtvMtroomStockOperateRequest{" + "mtRoomId=" + mtRoomId + "," + "stockDate=" + stockDate + "," + "periodStock=" + periodStock + "}";
    }
}
